/**
 * @license GNU GPL v2+
 * @author H. Snater < mediawiki@snater.com >
 */

.wikibase-toolbarbutton-disabled a {
	cursor: default;
}

.wikibase-toolbarbutton-disabled a:link,
.wikibase-toolbarbutton-disabled a:hover,
.wikibase-toolbarbutton-disabled a:active,
.wikibase-toolbarbutton-disabled a:visited {
	color: #72777d;
	text-decoration: none;
}

.wikibase-toolbarbutton.oo-ui-buttonElement {
	padding: 0;
}

.wikibase-toolbarbutton.oo-ui-buttonElement > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon {
	height: 1em;
	width: 1em;
}

.wikibase-toolbarbutton.ui-state-disabled.oo-ui-buttonElement > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon {
	opacity: 0.33;
}

.wikibase-toolbarbutton.ui-state-disabled.oo-ui-buttonElement > .oo-ui-buttonElement-button {
	cursor: default;
}

.wikibase-toolbar-button a {
	/* common styles */
	font-size: small;
	padding: 0;
}

.wikibase-toolbar-button .wb-icon {
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	opacity: 0.87;
}

.wikibase-toolbar-button a:hover .wb-icon {
	opacity: 1;
}

.wikibase-toolbar-button.ui-state-disabled a:hover .wb-icon {
	opacity: 0.5;
}

/**
 * Icons below are enabling SVG support by using a transparent gradient to
 * guarantee cross-browser compatibility (browsers able to understand
 * gradient syntax support also SVG).
 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique
 */
.wikibase-toolbar-button-edit .wb-icon {
	background-image: url( images/icons/ooui/edit.png );
	/* @embed */
	background-image: linear-gradient( transparent, transparent ), url( images/icons/ooui/edit.svg );
}

.wikibase-toolbar-button-save .wb-icon {
	background-image: url( images/icons/ooui/check.png );
	/* @embed */
	background-image: linear-gradient( transparent, transparent ), url( images/icons/ooui/check.svg );
}

.wikibase-toolbar-button-remove .wb-icon {
	background-image: url( images/icons/ooui/trash.png );
	/* @embed */
	background-image: linear-gradient( transparent, transparent ), url( images/icons/ooui/trash.svg );
}

.wikibase-toolbar-button-cancel .wb-icon {
	background-image: url( images/icons/ooui/close.png );
	/* @embed */
	background-image: linear-gradient( transparent, transparent ), url( images/icons/ooui/close.svg );
}

.wikibase-toolbar-button-add .wb-icon {
	background-image: url( images/icons/ooui/add.png );
	/* @embed */
	background-image: linear-gradient( transparent, transparent ), url( images/icons/ooui/add.svg );
}
